home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / prolog / brklyprl.lha / Emulator / Tests / Passed / test31.pl < prev    next >
Encoding:
Text File  |  1989-04-14  |  203 b   |  6 lines

  1.  
  2. /* Copyright (C) 1988, 1989 Herve' Touati, Aquarius Project, UC Berkeley */
  3.  
  4. main :- X = [a(_1,_2,_3)|_4], a(X,Y,Z), write(Y), write(Z), nl.
  5.  
  6. a([A|B],Func,Arity) :- A =.. [Func|Arg], length(Arg, Arity).